package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 楼栋信息表
 * </p>
 *
 * @author leequn
 * @since 2018-08-02
 */
@TableName("tb_building_info")
public class BuildingInfo extends Model<BuildingInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名称
     */
    private String name;
    /**
     * 楼栋介绍
     */
    @TableField("building_desc")
    private String buildingDesc;
    /**
     * 开发商
     */
    private Integer deptid;
    /**
     * 楼层
     */
    private Integer floor;
    /**
     * 创建日期
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 状态
     */
    private Integer stu;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBuildingDesc() {
        return buildingDesc;
    }

    public void setBuildingDesc(String buildingDesc) {
        this.buildingDesc = buildingDesc;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStu() {
        return stu;
    }

    public void setStu(Integer stu) {
        this.stu = stu;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BuildingInfo{" +
        "id=" + id +
        ", name=" + name +
        ", buildingDesc=" + buildingDesc +
        ", deptid=" + deptid +
        ", floor=" + floor +
        ", createTime=" + createTime +
        ", stu=" + stu +
        "}";
    }
}
